import { reactive } from "vue";

export const store = reactive({
  checkList: [], // 普通 先勾选 决议赞成 集合
  objectTo: [], // 决议投票 反对集合
  checked: reactive({
    // 已投集合
    support: [], // 普通和支持 集合
    objectTo: [], // 反对集合
  }),
  voteInfo: reactive({
    appBizVote: JSON.parse(localStorage.appBizVote || "{}"),
    appBizVoteEnrollConfig: JSON.parse(
      localStorage.appBizVoteEnrollConfig || "{}",
    ),
    appBizVoteGroup: JSON.parse(localStorage.appBizVoteGroup || "[]"),
    appBizVoteLayout: JSON.parse(localStorage.appBizVoteLayout || "{}"),
    appBizVotePublish: JSON.parse(localStorage.appBizVotePublish || "{}"),
    appBizVoteSetting: JSON.parse(localStorage.appBizVoteSetting || "{}"),
  }),
  userInfo: reactive(JSON.parse(localStorage.userInfo || "{}")), // 登录用户信息
});
